<template>
  <div>
    <div id="app">
      <div v-html="content"></div>
      <!--生成的代码会在这个元素子节点生成。-->
    </div>
  </div>
</template>

<script>
export default {
  name: 'performanceTop',
  data() {
    return {
      contentId: this.$route.query.cid,
      content: ''
    }
  },
  mounted() {
    let that = this
    console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxx')
    this.$http({
      url: 'https://testbzhz.jnbygroup.com/api/gateway/dealer-center/dealer/getContentInfo',
      method: 'get',
      params: {
        contentId: that.contentId
      }
    }).then(data => {
      if (data.code == 200) {
        console.log(data)
        // that.content = '<h1>aaa</h1>'
        that.content = data.data.content 
      } else {
        this.$toast(data.msg)
      }
    })
  },
  computed: {},
  created: function() {
    // document.title = '员工福利'
  },
  methods: {}
}
</script>
<style scoped>
</style>